# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.

obj-y := module.o time.o misc.o emergency-restart.o bootparam.o cpufeature.o dumpstack.o insn.o smp.o \
	timekeeping.o
obj-$(CONFIG_ARM64) += module-reloc.o
extra-y := liblinux.lds
obj-$(CONFIG_LIVEPATCH) += livepatch.o

ifneq ($(CONFIG_LIBLINUX_PREEMPT),y)
obj-y += preempt_fake.o
endif

obj-y += unimpl.o setup.o

obj-y += kmod.o panic.o printk.o hm_kthread.o signal.o exit.o

obj-y += locking/ sched/ power/ livepatch/

obj-y += mem_dfx_hook.o

obj-m += ldk_memstat.o

obj-y += capability.o
obj-y += groups.o
obj-y += sys.o
CFLAGS_setup.o += -I$(srctree)/drivers/of -I$(srctree)/mm
obj-$(CONFIG_TRACING) += trace.o

obj-$(CONFIG_LIBLINUX_STOP_MACHINE) += hm_stop_machine.o
